const Router = require("koa-router");

const router = new Router({ prefix: "/question" });

const {
  getQuestion,
  createQuestion,
  upload,
  deleteQuestion,
} = require("../controller/question.controller");

//!获取题库接口
router.get("/", getQuestion);

router.post("/upload_img", upload);

router.post("/creat_quetion", createQuestion);

router.post("/delete_question", deleteQuestion);

module.exports = router;
